/**
 * packages/imgproc/packages/ov9715_adj_param.c
 *
 *
 * Details  : internal idsp tuning parmateters
 *
 * History:
 *	2010/02/01 [Yihe Yao] - created file
 *
 *
 * Copyright (C) 2004-2009, Ambarella, Inc.
 *
 * All rights reserved. No Part of this file may be reproduced, stored
 * in a retrieval system, or transmitted, in any form, or by any means,
 * electronic, mechanical, photocopying, recording, or otherwise,
 * without the prior consent of Ambarella, Inc.
 */


#include "img_struct.h"


chroma_scale_filter_t ov9718_chroma_scale = {
					1,
					{
					256,299,342,385,428,471,514,557,600,643,686,729,772,815,858,901,
					936,970,990,1012,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
					1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
					1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
					1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
					1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
					1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
					1024,1012,996,956,916,856,796,736,676,616,556,496,436,376,316,256,
					},
					};

rgb_to_yuv_t ov9718_rgb2yuv[4] =
	{
		{//TV
			{187,  629,  63,
			-103, -346, 450,
			450, -409, -41,},
			16,  128, 128
		},
		{//PC
			{306,  601,  117,
			-173, -339, 512,
			512, -429, -83,},
			0,  128, 128
		},
		{//STILL
			{306,  601,  117,
			-173, -339, 512,
			512, -429, -83,},
			0,  128, 128
		},
		{//CUSTOM
			{187,  629,  63,
			-103, -346, 450,
			450, -409, -41,},
			16,  128, 128
		},
	};

adj_param_t ov9718_adj_param = {
	{20,
	//ev_index
	// AWB			            AE     // for Ambarella AE AWB algo
	// low       d50       high         target
	{{{ 128,128,  128,128,  128,128,    87}}, // [0]: outdoor
	 {{ 128,128,  128,128,  128,128,     87 }}, // [1]:6db
	 {{ 128,128,  128,128,  128,128,     87 }}, // [2]:12db
	 {{ 128,128,  128,128,  128,128,     87 }}, // [3]:18db
	 {{ 128,128,  128,128,  128,128,     70}}, // [4]:24db
	 {{ 128,128,  128,128,  128,128,     50 }}, // [5]:30db
	 {{ 128,128,  128,128,  128,128,     50 }}, // [6]:36db
	 {{ 128,128,  128,128,  128,128,     50 }}, // [7]:42db
	 {{ 128,128,  128,128,  128,128,     50 }}, // [8]:48db
	 {{ 128,128,  128,128,  128,128,     50 }}, // [9]:54db
	 {{ 128,128,  128,128,  128,128,     50 }}, // [10]:
	 {{ 128,128,  128,128,  128,128,     50 }}, // [11]:
	 {{ 128,128,  128,128,  128,128,     50 }}, // [12]:
	 {{ 128,128,  128,128,  128,128,     50 }}, // [13]:
	 {{ 128,128,  128,128,  128,128,     50 }}, // [14]:
	 {{ 128,128,  128,128,  128,128,     50 }}, // [15]:
	 {{ 128,128,  128,128,  128,128,     50 }}, // [16]:
	 {{ 128,128,  128,128,  128,128,     50 }}, // [17]:
	 {{ 128,128,  128,128,  128,128,     50 }}, // [18]:
	 {{ 128,128,  128,128,  128,128,     50 }}}},// [19]:

	{20,
	//ev_index
	//  Y   UV  color  Gamma l_exposure chr_scale aliasing
	 {{  0,   0,    1,     1,    1,         1,         0}},  // ev_color enable
	 {{{16,  64,  128,   128,  128,       60,         0}},  // [0]: 0db outdoor
	  {{16,  64,  128,   128,  128,        56,         0}},  // [1]:6db
	  {{16,  64,  128,   128,  128,        52,         0}},  // [2]:12db
	  {{16,  64,  128,   128,  128,        48,         0}},  // [3]:18db
	  {{16,  64,  128,   128,  128,        48,         0}},  // [4]:24db
	  {{16,  64,  128,   128,  128,        48,         0}},  // [5]:30db
	  {{16,  64,  128,   128,  128,        48,         0}},  // [6]:36db
	  {{16,  64,  128,   128,  128,        48,         0}},  // [7]:42db
	  {{16,  64,  128,   128,  128,        48,         0}},  // [8]:48db
	  {{16,  64,  128,   128,  128,        48,         0}},  // [9]:54db
	  {{16,  64,  128,   128,  112,        48,         0}},  // [10]:
	  {{16,  64,  128,   128,  100,        48,         0}},  // [12]:
	  {{16,  64,   80,   128,   80,         48,         0}},  // [13]:
	  {{16,  64,   50,   128,   60,         48,         0}},  // [14]:
	  {{16,  64,   30,   128,    0,          48,         0}},  // [15]:
	  {{16,  64,   30,   128,    0,          48,         0}},  // [16]:
	  {{16,  64,   30,   128,    0,          48,         0}},  // [17]:
	  {{16,  64,   30,   128,    0,          48,         0}},  // [18]:
	  {{16,  64,   30,   128,    0,          48,         0}}}},// [19]:

	{10,

	{0,	// color_type

	 1,			// color_control
	 3,			// color_table_count
	{{1098, 2420, 0, {0},{ 1509,  -244, -288,	//2800K
			      -498,  1760, -238,
			      -269,  -1828, 3048}},
	 {1593, 1632, 0, {0},{ 1753, -619,  -159,	//5000K
			      -331,  1711, -356,
			       16,  -1185, 2199}},
	 {1916, 1287, 0, {0},{ 1909, -739, -190,	//7500K
			      -326,  1821, -471,
			      -21,  -939, 2017}}},
	{512,640},	// cc_interpo_ev
	},


	//black_level_control
	1, //black_level_control enable
	//        Low                 High
	//    R     G    B        R     G     B
	{{{ -270, -270, -270, -270, -270, -270 }}, // [0]: 0db
	 {{ -270, -270, -270, -270, -270, -270 }}, // [1]: 6db
	 {{ -270, -270, -270, -270, -270, -270 }}, // [2]: 12db
	 {{ -270, -270, -270, -270, -270, -270 }}, // [3]: 18db
	 {{ -260, -260, -260, -260, -260, -260 }}, // [4]: 24db
	 {{ -250, -250, -250, -250, -250, -250 }}, // [5]: 30db
	 {{ -250, -250, -250, -250, -250, -250 }}, // [6]: 36db
	 {{ -250, -250, -250, -250, -250, -250 }}, // [7]: 42db
	 {{ -250, -250, -250, -250, -250, -250 }}, // [8]: 48db
	 {{ -250, -250, -250, -250, -250, -250 }}},// [9]: 54db

	//Bad Pixel           Low         High color temperture
	//type hBP dBP        cb   cr     cb   cr  chroma_median
	{{   1,                1                    }}, // enable
	{{{  3, 0, 0,           0,    0,      0,     0 }}, // [0]: 0db
	 {{  3, 0, 0,            0,   0,       0,     0 }}, // [1]: 6db
	 {{  3,10,10,       170, 170,   170, 170}}, // [2]: 12db
	 {{  3,10,10,        170, 170,   170, 170 }}, // [3]: 18db
	 {{  3,10,10,        180, 180,   180, 180 }}, // [4]: 24db
	 {{  3,10,10,        220, 220,   220, 220 }}, // [5]: 30db
	 {{  3,10,10,        240, 240,   240, 240 }}, // [6]: 36db
	 {{  3,10,10,        240, 240,   240, 240 }}, // [7]: 42db
	 {{  3,10,10,        240, 240,   240, 240 }}, // [8]: 48db
	 {{  3,10,10,       240, 240,   240, 240}}}, // [9]: 54db

	//cfa_filter
	1, //cfa_filter_enable

	//Low color temperture
	// dir                         non_dir
	//center_weight threshold      center_weight threshold
	//  r   g   b    r    g    b    r   g   b    r    g    b close  grad_thresh
	{{{ 12, 18,  12, 0,0,0,12,18, 12,200,200,200,200,341}}, // [0]: 0db
	 {{ 12, 18,  12, 0,0,0,11,17, 11,400,400,400,400,400}}, // [1]: 6db
	 {{ 12, 18,  12, 0,0,0,11,17, 11,400,400,400,400,500}}, // [2]: 12db
	 {{ 12, 18,  12, 300,  300, 300,   8, 10,  8,  800, 800, 800, 800,500}}, // [3]: 18db
	 {{ 12, 18,  12, 300,  300, 300,   8, 10,  8,  1200, 1200, 1200, 1200,600}}, // [4]: 24db
	 {{ 8, 12,  8, 1000,  1000, 1000,   4, 6,  4,  4000, 4000, 4000, 4000,700}}, // [5]: 30db
	 {{  8, 12,  8, 1000,  1000, 1000,    2, 3,  2,  6000, 6000, 6000, 6000,700}}, // [6]: 36db
	 {{  8, 12,  8, 1000,  1000, 1000,    2, 3,  2,  6000, 6000, 6000, 6000,700}}, // [7]: 42db
	 {{  8, 12,  8, 1000,  1000, 1000,    2, 3,  2,  6000, 6000, 6000, 6000,700}}, // [8]: 48db
	 {{ 8, 12,  8, 1000,  1000, 1000,   2, 3,  2,  6000, 6000, 6000, 6000,700}}}, // [9]: 54db

	//High color temperture
	// dir                         non_dir
	//center_weight threshold      center_weight threshold
	//  r   g   b    r    g    b    r   g   b    r    g    b close  grad_thresh
	{{{ 12, 18,  12, 0,0,0,12,18, 12,200,200,200,200,341}}, // [0]: 0db
	 {{ 12, 18,  12, 0,0,0,11,17, 11,400,400,400,400,400}}, // [1]: 6db
	 {{ 12, 18,  12, 0,0,0,11,17, 11,400,400,400,400,500}}, // [2]: 12db
	 {{ 12, 18,  12, 300,  300, 300,   8, 10,  8,  800, 800, 800, 800,500}}, // [3]: 18db
	 {{ 12, 18,  12, 300,  300, 300,   8, 10,  8,  1200, 1200, 1200, 1200,600}}, // [4]: 24db
	 {{ 8, 12,  8, 1000,  1000, 1000,   4, 6,  4,  4000, 4000, 4000, 4000,700}}, // [5]: 30db
	 {{  8, 12,  8, 1000,  1000, 1000,    2, 3,  2,  6000, 6000, 6000, 6000,700}}, // [6]: 36db
	 {{  8, 12,  8, 1000,  1000, 1000,    2, 3,  2,  6000, 6000, 6000, 6000,700}}, // [7]: 42db
	 {{  8, 12,  8, 1000,  1000, 1000,    2, 3,  2,  6000, 6000, 6000, 6000,700}}, // [8]: 48db
	 {{ 8, 12,  8, 1000,  1000, 1000,   2, 3,  2,  6000, 6000, 6000, 6000,700}}}, // [9]: 54db
	/* ratio_255_gamma_table */
        {
                {/* red */
                   0,3,6,9,11,13,15,17,18,20,22,24,26,28,30,32,34,36,38,40,42,45,47,49,52,55,57,59,62,66,68,71,74,77,80,83,87,90,93,97,100,104,108,112,115,119,
		      123,127,131,136,140,144,149,154,157,163,166,170,176,180,184,191,195,199,204,208,213,217,224,229,234,238,243,248,253,258,263,268,273,278,283,286,291,
		      296,301,306,312,317,322,327,332,338,343,348,353,359,364,366,372,377,382,387,392,397,403,408,413,420,425,430,435,440,444,449,456,461,465,470,476,481,
		      485,491,495,502,507,511,517,522,527,532,537,543,547,553,558,561,567,574,580,587,595,602,609,617,623,631,637,643,651,657,663,671,678,684,690,696,705,
		      711,717,724,730,736,742,749,755,761,767,773,779,785,790,796,802,807,813,818,823,828,833,838,843,847,852,857,862,865,869,873,877,880,884,887,890,894,
		      897,900,902,906,909,912,914,917,920,922,924,926,929,932,933,936,938,940,942,944,946,948,951,952,955,956,958,960,962,964,965,967,970,971,973,975,976,
		      978,980,981,983,985,986,988,990,991,993,994,996,998,999,1001,1003,1004,1006,1008,1010,1012,1014,1015,1019,1023
},
		{/* green */
                   0,3,6,9,11,13,15,17,18,20,22,24,26,28,30,32,34,36,38,40,42,45,47,49,52,55,57,59,62,66,68,71,74,77,80,83,87,90,93,97,100,104,108,112,115,119,
		      123,127,131,136,140,144,149,154,157,163,166,170,176,180,184,191,195,199,204,208,213,217,224,229,234,238,243,248,253,258,263,268,273,278,283,286,291,
		      296,301,306,312,317,322,327,332,338,343,348,353,359,364,366,372,377,382,387,392,397,403,408,413,420,425,430,435,440,444,449,456,461,465,470,476,481,
		      485,491,495,502,507,511,517,522,527,532,537,543,547,553,558,561,567,574,580,587,595,602,609,617,623,631,637,643,651,657,663,671,678,684,690,696,705,
		      711,717,724,730,736,742,749,755,761,767,773,779,785,790,796,802,807,813,818,823,828,833,838,843,847,852,857,862,865,869,873,877,880,884,887,890,894,
		      897,900,902,906,909,912,914,917,920,922,924,926,929,932,933,936,938,940,942,944,946,948,951,952,955,956,958,960,962,964,965,967,970,971,973,975,976,
		      978,980,981,983,985,986,988,990,991,993,994,996,998,999,1001,1003,1004,1006,1008,1010,1012,1014,1015,1019,1023},
		{/* blue */
                    0,3,6,9,11,13,15,17,18,20,22,24,26,28,30,32,34,36,38,40,42,45,47,49,52,55,57,59,62,66,68,71,74,77,80,83,87,90,93,97,100,104,108,112,115,119,
		      123,127,131,136,140,144,149,154,157,163,166,170,176,180,184,191,195,199,204,208,213,217,224,229,234,238,243,248,253,258,263,268,273,278,283,286,291,
		      296,301,306,312,317,322,327,332,338,343,348,353,359,364,366,372,377,382,387,392,397,403,408,413,420,425,430,435,440,444,449,456,461,465,470,476,481,
		      485,491,495,502,507,511,517,522,527,532,537,543,547,553,558,561,567,574,580,587,595,602,609,617,623,631,637,643,651,657,663,671,678,684,690,696,705,
		      711,717,724,730,736,742,749,755,761,767,773,779,785,790,796,802,807,813,818,823,828,833,838,843,847,852,857,862,865,869,873,877,880,884,887,890,894,
		      897,900,902,906,909,912,914,917,920,922,924,926,929,932,933,936,938,940,942,944,946,948,951,952,955,956,958,960,962,964,965,967,970,971,973,975,976,
		      978,980,981,983,985,986,988,990,991,993,994,996,998,999,1001,1003,1004,1006,1008,1010,1012,1014,1015,1019,1023}
	},

        /* ratio_0_gamma_table */
        {
            {/* red */
                   0,   1,   1,   2,   3,   4,   5,   7,   8,   9,  10,  12,  13,  15,  16,  18, 20,  22,  23,  25,  27,  29,  31,  33,  35,  37,  39,  41,  43,  46,  48,  51,
                  53,  55,  58,  60,  63,  65,  68,  70,  73,  76,  78,  81,  83,  86,  89,  92, 95,  97, 100, 103, 106, 109, 112, 114, 117, 120, 124, 129, 133, 137, 141, 146,
		 150, 154, 158, 163, 167, 171, 175, 180, 184, 189, 194, 199, 204, 210, 215, 220,225, 230, 235, 240, 245, 250, 255, 261, 266, 271, 276, 281, 286, 292, 297, 303,
		 308, 314, 320, 325, 331, 336, 342, 347, 353, 359, 364, 370, 375, 381, 387, 392,398, 403, 409, 414, 420, 425, 430, 436, 441, 446, 451, 457, 462, 467, 472, 478,
		 483, 488, 493, 498, 504, 509, 514, 519, 525, 530, 535, 540, 546, 551, 556, 561,565, 570, 575, 579, 584, 589, 593, 598, 603, 607, 612, 617, 621, 626, 631, 635,
		 640, 645, 649, 654, 658, 662, 666, 670, 674, 678, 682, 686, 690, 694, 698, 702,706, 710, 714, 718, 722, 726, 730, 734, 738, 742, 746, 750, 754, 758, 762, 766,
		 770, 774, 778, 782, 786, 790, 794, 798, 802, 806, 810, 814, 818, 822, 826, 830,834, 838, 842, 847, 851, 855, 859, 863, 867, 871, 875, 879, 883, 887, 891, 895,
		 899, 903, 907, 911, 915, 919, 923, 927, 931, 935, 939, 943, 947, 951, 955, 959,963, 967, 971, 975, 979, 983, 987, 991, 995, 999,1003,1007,1011,1015,1019,1023},
		{/* green */
                   0,   1,   1,   2,   3,   4,   5,   7,   8,   9,  10,  12,  13,  15,  16,  18, 20,  22,  23,  25,  27,  29,  31,  33,  35,  37,  39,  41,  43,  46,  48,  51,
                  53,  55,  58,  60,  63,  65,  68,  70,  73,  76,  78,  81,  83,  86,  89,  92, 95,  97, 100, 103, 106, 109, 112, 114, 117, 120, 124, 129, 133, 137, 141, 146,
		 150, 154, 158, 163, 167, 171, 175, 180, 184, 189, 194, 199, 204, 210, 215, 220,225, 230, 235, 240, 245, 250, 255, 261, 266, 271, 276, 281, 286, 292, 297, 303,
		 308, 314, 320, 325, 331, 336, 342, 347, 353, 359, 364, 370, 375, 381, 387, 392,398, 403, 409, 414, 420, 425, 430, 436, 441, 446, 451, 457, 462, 467, 472, 478,
		 483, 488, 493, 498, 504, 509, 514, 519, 525, 530, 535, 540, 546, 551, 556, 561,565, 570, 575, 579, 584, 589, 593, 598, 603, 607, 612, 617, 621, 626, 631, 635,
		 640, 645, 649, 654, 658, 662, 666, 670, 674, 678, 682, 686, 690, 694, 698, 702,706, 710, 714, 718, 722, 726, 730, 734, 738, 742, 746, 750, 754, 758, 762, 766,
		 770, 774, 778, 782, 786, 790, 794, 798, 802, 806, 810, 814, 818, 822, 826, 830,834, 838, 842, 847, 851, 855, 859, 863, 867, 871, 875, 879, 883, 887, 891, 895,
		 899, 903, 907, 911, 915, 919, 923, 927, 931, 935, 939, 943, 947, 951, 955, 959,963, 967, 971, 975, 979, 983, 987, 991, 995, 999,1003,1007,1011,1015,1019,1023},
		{/* blue */
                   0,   1,   1,   2,   3,   4,   5,   7,   8,   9,  10,  12,  13,  15,  16,  18, 20,  22,  23,  25,  27,  29,  31,  33,  35,  37,  39,  41,  43,  46,  48,  51,
                  53,  55,  58,  60,  63,  65,  68,  70,  73,  76,  78,  81,  83,  86,  89,  92, 95,  97, 100, 103, 106, 109, 112, 114, 117, 120, 124, 129, 133, 137, 141, 146,
		 150, 154, 158, 163, 167, 171, 175, 180, 184, 189, 194, 199, 204, 210, 215, 220,225, 230, 235, 240, 245, 250, 255, 261, 266, 271, 276, 281, 286, 292, 297, 303,
		 308, 314, 320, 325, 331, 336, 342, 347, 353, 359, 364, 370, 375, 381, 387, 392,398, 403, 409, 414, 420, 425, 430, 436, 441, 446, 451, 457, 462, 467, 472, 478,
		 483, 488, 493, 498, 504, 509, 514, 519, 525, 530, 535, 540, 546, 551, 556, 561,565, 570, 575, 579, 584, 589, 593, 598, 603, 607, 612, 617, 621, 626, 631, 635,
		 640, 645, 649, 654, 658, 662, 666, 670, 674, 678, 682, 686, 690, 694, 698, 702,706, 710, 714, 718, 722, 726, 730, 734, 738, 742, 746, 750, 754, 758, 762, 766,
		 770, 774, 778, 782, 786, 790, 794, 798, 802, 806, 810, 814, 818, 822, 826, 830,834, 838, 842, 847, 851, 855, 859, 863, 867, 871, 875, 879, 883, 887, 891, 895,
		 899, 903, 907, 911, 915, 919, 923, 927, 931, 935, 939, 943, 947, 951, 955, 959,963, 967, 971, 975, 979, 983, 987, 991, 995, 999,1003,1007,1011,1015,1019,1023}
	},
	/* ratio_255_local_exposure */
        {1024,4095,3213,2788,2521,2331,2187,2072,
	1978,1898,1829,1769,1716,1669,1626,1587,
	1552,1519,1489,1461,1435,1411,1388,1367,
	1346,1327,1309,1292,1276,1260,1245,1231,
	1217,1207,1199,1190,1181,1173,1163,1154,
	1146,1137,1129,1122,1113,1106,1099,1093,
	1086,1080,1075,1069,1064,1060,1055,1051,
	1047,1043,1040,1037,1034,1031,1030,1027,
	1025,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024},
        /* ratio_0_local_exposure */
        {1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024},
	},
	{10,
	//video_mctf
	1, //video_mctf_enable
	// alpha  alpha2   thr1   thr2  thr3  thr4    y    u    v max_change
	{{{128, 128,   5,    10,10,10,   100, 100, 100}},  // [0]: 0db
	 {{128, 128,   5,    10,10,10,   100, 100, 100}},  // [1]: 6db
	 {{128, 128,   5,    10,10,10,   100, 100, 100}},  // [2]: 12db
	 {{128, 128,   5,    10,10,10,   100, 100, 100}},  // [3]: 18db
	 {{128, 128,   5,    10,10,10,   100, 100, 100}},  // [4]: 24db
	 {{128, 128, 10,    20,20,20,   100, 100, 100}},  // [5]: 30db
	 {{128, 128, 10,    20,20,20,   100, 100, 100}},  // [6]: 36db
	 {{128, 128, 10,    20,20,20,   100, 100, 100}},  // [7]: 42db
	 {{128, 128, 10,    20,20,20,   100, 100, 100}},  // [8]: 48db
	 {{128, 128, 10,    20,20,20,   100, 100, 100}}}},// [9]: 54db

	 {10,

	//spatial_filter
	1, //spatial_enable
	// isotropic directional edge_thr
	{{{60,0,30,255}}, // [0]: 0db
	 {{90,5,30,255}}, // [1]: 6db
	 {{96,6,50,255}}, // [2]: 12db
	 {{96,8,50,255}}, // [3]: 18db
	 {{120,15,60,255}}, // [4]: 24db
	 {{200,20,80,255}}, // [5]: 30db
	 {{200,20,80,255}}, // [6]: 36db
	 {{200,20,80,255}}, // [7]: 42db
	 {{200,20,80,255}}, // [8]: 48db
	 {{200,20,80,255}}}, // [9]: 54db

	//sharpening_filter
	1, //sharpening_enable

	//sharpening_level_minimum
	//  low  low_delta  low_str  mid_str  high  high_delta  high_str
	{{{  40,      5,      0,       0, 180,     4,     255   }}, // [0]: 0db
	 {{  40,      5,      0,       0, 180,     4,      255   }}, // [1]: 6db
	 {{  40,      5,      0,       0, 180,     4,      255   }}, // [2]: 12db
	 {{  40,      5,      0,       0, 180,     4,      255   }}, // [3]: 18db
	 {{  40,      5,      0,       0, 180,     4,      0   }}, // [4]: 24db
	 {{  40,      5,      0,       0, 180,     4,      0   }}, // [5]: 30db
	 {{  40,      5,      0,       0, 180,     4,      0   }}, // [6]: 36db
	 {{  40,      5,      0,       0, 180,     4,      0   }}, // [7]: 42db
	 {{  40,      5,      0,       0, 180,     4,      0   }}, // [8]: 48db
	 {{  40,      5,      0,       0, 180,     4,      0   }}}, // [9]: 54db

	//sharpening_level_overall
	//  low  low_delta  low_str  mid_str  high  high_delta  high_str
	{{{   40,     5,    48,      128,   180,       4,      128   }}, // [0]: 0db
	 {{   40,      5,    25,      120,   180,       4,     120  }}, // [1]: 6db
	 {{   40,      5,    20,      90,   180,       4,     80   }}, // [2]: 12db
	 {{   40,      5,    10,      80,   180,       4,      80   }}, // [3]: 18db
	 {{   40,      5,    8,        50,   180,       4,      42   }}, // [4]: 24db
	 {{   40,      5,    5,        20,   180,       4,      15   }}, // [5]: 30db
	 {{   40,      5,    0,        0,   180,       4,      0   }}, // [6]: 36db
	 {{   40,      5,    0,        0,   180,       4,      0   }}, // [7]: 42db
	 {{   40,      5,    0,        0,   180,       4,      0   }}, // [8]: 48db
	 {{   40,      5,    0,        0,   180,       4,      0   }}}, // [9]: 54db

	//high_freq   retain    max_change      fir_filter
	//noise       level      up   down      strength    coeff
	{{{ 3,       0,    10, 10,       192,        0,  0,   0, 0,  0,  0 }},  // [0]: 0db
	 {{ 5,       0,    10, 10,       192,         0,  0,   0, 0,  0,  0 }},  // [1]: 6db
	 {{ 10,       0,    8, 8,        192,         0,  0,   0, 0,  0,  0 }},  // [2]: 12db
	 {{ 10,       0,    6, 6,       120,         0,  0,   0, 0,  0,  0 }},  // [3]: 18db
	 {{ 10,       0,    5, 5,       96,         0,  0,   0, 0,  0,  0 }},  // [4]: 24db
	 {{ 20,       0,    2, 4,       64,         0,  0,   0, 0,  0,  0 }},  // [5]: 30db
	 {{ 20,       0,    2, 3,       64,         0,  0,   0, 0,  0,  0 }},  // [6]: 36db
	 {{ 20,       0,    2, 3,       64,        0,  0,   0, 0,  0,  0 }},  // [7]: 42db
	 {{20,       0,    0, 0,       32,         0,  0,   0, 0,  0,  0 }},  // [8]: 48db
	 {{20,       0,    0, 0,       32,         0,  0,   0, 0,  0,  0 }}}, // [9]: 54db

	//coring
        {{{ // [0]: 0db
           28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,
	    28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,
	    28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,
	    28,28,28,24,18,18,12,12,8,4,2,2,4,8,12,12,18,18,24,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,
	    28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,
	    28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,
	    28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28}},
         {{ // [1]: 6db
           24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,
	     24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,
	     24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,
	     24,24,24,18,18,18,18,12,12,6,2,2,6,12,12,18,18,18,18,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,
	     24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,
	     24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,
	     24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24}},
         {{ // [2]: 12db
           20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,
	     20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,
	     20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,
	     20,20,20,18,18,12,12,12,6,6,2,2,6,6,12,12,12,18,18,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,
	     20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,
	     20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,
	     20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20}},
         {{ // [3]: 18db
          18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
	   18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
	   18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
	    18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 12, 8, 6, 6, 4, 4,
	    4, 4, 6, 6, 8, 12, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
          18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
	   18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
	   18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18}},
         {{ // [4]: 24db
          13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,
	    13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,
	    13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,
	    13,13,13,13,13,11,8,6,4,3,0,0,3,4,6,8,11,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,
	    13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,
	    13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,
	    13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13}},
         {{  // [5]: 30db
	  10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,
	  10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,
	  10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,
	  10,10,8,8,8,8,7,4,0,0,0,0,4,7,8,8,8,8,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,
	  10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,
	  10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,
	  10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10}},
         {{  // [6]: 36db
	   8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8,
	   8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8,
	   8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8,
	   8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 4, 0,  0,
	    0,  0, 4, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8,
	   8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8,
	   8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8,
	   8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8}},
         {{  // [7]: 42db
	   8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8,
	   8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8,
	   8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8,
	   8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 4, 0,  0,
	    0,  0, 4, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8,
	   8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8,
	   8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8,
	   8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8}},
         {{  // [8]: 48db
	   8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8,
	   8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8,
	   8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8,
	   8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 4, 0,  0,
	    0,  0, 4, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8,
	   8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8,
	   8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8,
	   8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8}},
	  {{  // [9]: 54db
	   8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8,
	   8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8,
	   8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8,
	   8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 4, 0,  0,
	    0,  0, 4, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8,
	   8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8,
	   8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8,
	   8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8}},
	}
	},
};

local_exposure_t ov9718_manual_LE[3] = {
{	1, 0, 16, 16, 16, 2,// 2X
	{2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048,
	2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048,
	2047, 2043, 2037, 2029, 2020, 2009, 1997, 1985, 1972, 1958, 1943, 1928, 1913, 1898, 1883, 1867,
	1851, 1836, 1820, 1804, 1788, 1773, 1757, 1742, 1727, 1712, 1697, 1682, 1667, 1653, 1638, 1624,
	1610, 1597, 1583, 1570, 1556, 1543, 1530, 1518, 1505, 1493, 1480, 1468, 1456, 1445, 1433, 1422,
	1411, 1400, 1389, 1378, 1367, 1357, 1347, 1337, 1326, 1317, 1307, 1297, 1288, 1279, 1269, 1260,
	1251, 1242, 1234, 1225, 1217, 1208, 1200, 1192, 1184, 1176, 1168, 1160, 1153, 1145, 1138, 1130,
	1123, 1116, 1109, 1102, 1095, 1088, 1081, 1075, 1068, 1062, 1055, 1049, 1043, 1037, 1031, 1024,
	1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024,
	1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024,
	1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024,
	1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024,
	1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024,
	1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024,
	1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024,
	1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024,}}
,
{	1, 0, 16, 16, 16, 2, // 3X
	{3072, 3072, 3072, 3072, 3072, 3072, 3072, 3072, 3072, 3072, 3072, 3072, 3072, 3072, 3072, 3072,
	3072, 3072, 3072, 3072, 3072, 3072, 3072, 3072, 3072, 3072, 3072, 3072, 3072, 3072, 3072, 3072,
	3070, 3063, 3053, 3039, 3023, 3005, 2985, 2964, 2942, 2918, 2894, 2870, 2844, 2819, 2793, 2767,
	2741, 2716, 2690, 2664, 2638, 2613, 2588, 2563, 2538, 2513, 2489, 2465, 2441, 2418, 2395, 2372,
	2350, 2328, 2306, 2285, 2263, 2243, 2222, 2202, 2182, 2162, 2143, 2124, 2105, 2087, 2069, 2051,
	2033, 2016, 1999, 1982, 1965, 1949, 1933, 1917, 1901, 1886, 1871, 1856, 1841, 1827, 1813, 1799,
	1785, 1771, 1758, 1744, 1731, 1718, 1706, 1693, 1681, 1669, 1657, 1645, 1633, 1622, 1610, 1599,
	1588, 1577, 1566, 1556, 1545, 1535, 1525, 1515, 1505, 1495, 1485, 1476, 1466, 1457, 1448, 1439,
	1430, 1421, 1412, 1403, 1395, 1386, 1378, 1370, 1361, 1353, 1345, 1337, 1330, 1322, 1314, 1307,
	1299, 1292, 1285, 1278, 1270, 1263, 1256, 1249, 1243, 1236, 1229, 1223, 1216, 1210, 1203, 1197,
	1191, 1185, 1178, 1172, 1166, 1160, 1155, 1149, 1143, 1137, 1132, 1126, 1120, 1115, 1109, 1104,
	1099, 1094, 1088, 1083, 1078, 1073, 1068, 1063, 1058, 1053, 1048, 1043, 1039, 1034, 1024, 1024,
	1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024,
	1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024,
	1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024,
	1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024,}}
,
{	1, 0, 16, 16, 16, 2, // 4X
	{4095, 4095, 4095, 4095, 4095, 4095, 4095, 4095, 4095, 4095, 4095, 4095, 4095, 4095, 4095, 4095,
	4095, 4095, 4095, 4095, 4095, 4095, 4095, 4095, 4095, 4095, 4095, 4095, 4095, 4095, 4095, 4095,
	4092, 4083, 4068, 4049, 4027, 4002, 3974, 3945, 3914, 3881, 3848, 3814, 3779, 3744, 3709, 3673,
	3637, 3602, 3566, 3531, 3496, 3461, 3426, 3392, 3358, 3324, 3291, 3259, 3226, 3194, 3163, 3132,
	3102, 3071, 3042, 3013, 2984, 2956, 2928, 2900, 2873, 2847, 2820, 2795, 2769, 2744, 2720, 2696,
	2672, 2648, 2625, 2603, 2580, 2558, 2537, 2515, 2494, 2473, 2453, 2433, 2413, 2394, 2375, 2356,
	2337, 2319, 2301, 2283, 2266, 2248, 2231, 2214, 2198, 2182, 2166, 2150, 2134, 2119, 2103, 2088,
	2074, 2059, 2045, 2030, 2016, 2003, 1989, 1976, 1962, 1949, 1936, 1923, 1911, 1898, 1886, 1874,
	1862, 1850, 1838, 1827, 1816, 1804, 1793, 1782, 1771, 1761, 1750, 1739, 1729, 1719, 1709, 1699,
	1689, 1679, 1669, 1660, 1650, 1641, 1632, 1623, 1614, 1605, 1596, 1587, 1578, 1570, 1561, 1553,
	1545, 1537, 1529, 1520, 1513, 1505, 1497, 1489, 1482, 1474, 1467, 1459, 1452, 1445, 1437, 1430,
	1423, 1416, 1409, 1403, 1396, 1389, 1382, 1376, 1369, 1363, 1356, 1350, 1344, 1338, 1331, 1325,
	1319, 1313, 1307, 1301, 1296, 1290, 1284, 1278, 1273, 1267, 1262, 1256, 1251, 1245, 1240, 1235,
	1229, 1224, 1219, 1214, 1209, 1204, 1199, 1194, 1189, 1184, 1179, 1174, 1170, 1165, 1160, 1156,
	1151, 1146, 1142, 1137, 1133, 1128, 1124, 1120, 1115, 1111, 1107, 1103, 1098, 1094, 1090, 1086,
	1082, 1078, 1074, 1070, 1066, 1062, 1058, 1054, 1050, 1047, 1043, 1039, 1035, 1032, 1028, 1024,}}
};

